home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Supervisor's Toolkit
/
Network Supervisor's Toolkit.iso
/
users
/
userid
/
userid.doc
< prev
Wrap
Text File
|
1996-07-10
|
2KB
|
64 lines
USERID.DOC
==========
This UDF() was written in Turbo-C for the purpose of assigning the full
3-part 3Com 3+ logon name to a Clipper string variable.
CALLING SYNTAX
==============
Username = userid()
That's all there is to calling the function!
If the user is logged in, a string is returned in the form of
"First Last:Domain:Organization".
If the user is not logged in OR NetBios is not started OR the network adapter
card is not installed, then the utility will search for a DOS environment
variable UID and return the value. This allows you to develop and run
programs while off the network. If the UID variable is not found, then
the return value is an empty string.
LINKING
=======
This utility makes use of Clipper's EXTEND system, thus you need to include
EXTEND.LIB in the list of libraries to be linked. LINK v3.3, TLINK v1.0, and
Plink86 all have successfully linked this file.
TESTING
=======
Because I have limited access to networks and not a wide variety of
implementations, this utility may be version dependent. It works in my tests
but I make no guarantee that it will work in all, and assume no responsibility
for damages incurred.
_USERID.OBJ is submitted into the Public Domain by Bruce Hammerberg. If you
copy this utility to another BBS or forum please provide the documentation.
Source code can be provided for a small donation to my worthy cause!
Bruce Hammerberg
Post 1606a Maynard
Champaign, Il. 61821
Phone 217-333-3113
CIS [72250,2653]
Turbo-C is a trademark of Borland International, 3Com 3+ is a trademark of
3Com Inc, Clipper is trademark of Nantucket Inc.